package com.itheima.tlias.controller;

import com.itheima.tlias.model.entity.JobOption;
import com.itheima.tlias.model.response.Result;
import com.itheima.tlias.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/report")
@RestController
public class ReportController {
    @Autowired
    ReportService reportService;

    @GetMapping("/empJobData")
    public Result<JobOption> getEmpJobData() {
     JobOption jobOption = reportService.getEmpJobData();
     return Result.success(jobOption);
    }


}
